<template>
  <div id="header_outside_div">
    <!--左部图标-->
    <div id="header_left_div">
      <div id="header_icon">
        <el-button type="text">
          <span style="color: #FFFFFF">
            <i class="el-icon-goods"></i>
            {{projectName}}
          </span>
        </el-button>
      </div>
    </div>
    <!--右部下拉菜单-->
    <div id="header_right_div">
      <el-dropdown trigger="click">
        <span class="el-dropdown-link" style="color: #FFFFFF">
          <i class="el-icon-user-solid"></i>
          {{nickname}}
          <i class="el-icon-arrow-down el-icon--right"></i>
        </span>
        <!--菜单选项-->
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>退出</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>

    </div>
  </div>
</template>

<script>
  export default {
    name: "Header",
    data() {
      return {
        projectName: '项目名称',
        nickname: '账号名称'
      }
    }
  }
</script>

<style scoped>
  #header_outside_div {
    width: 98%;
    background-color: black;
    color: #FFFFFF;
    height: 60px;
    padding: 0 20px;
  }

  #header_left_div {
    float: left;
    height: 100%;
    line-height: 60px;
    text-align: center;
  }

  #header_right_div {
    float: right;
    height: 100%;
    line-height: 60px;
    text-align: center;
  }
</style>
